Spring Boot Blog Posts

Spring Boot Application

First you create a maven project in eclipse
you can create it with the following way:
Go to New --> Other --> Select Maven Project --> Give group id and artifact id  --> Finish
Note : Both Artifact Id and Group Id should be same.
Now you can see the following structure.
Now in the pom.xml you need to add the dependencies:
//pom.xml

1 Likes 1077 Views
Uploading files to AWS S3 Bucket using Spring Boot

In this article,we will learn how to upload the files to s3 bucket using spring boot.
Spring Boot part:
Let’s create Spring Boot project and add amazon dependency.

com.amazonaws
aws-java-sdk
1.11.133

0 Likes 2667 Views
Difference between @Component, @Repository & @Service annotations in Spring

@Component:
What’s special about @Component ?
 only scans @Component and does not look for @Controller, @Service and @Repository in general. They are scanned because they themselves are annotated with @Component. picks them up and registers their following classes as beans, just as if they were annotated with @Component.
@Service :
@Component
public @interface Service {
//some logic

0 Likes 810 Views